package org.agora.photogallery.client.event;


import org.agora.photogallery.client.model.Gallery;

import com.google.gwt.event.shared.GwtEvent;

public class GalleryClickedEvent extends GwtEvent<GalleryClickedHandler>{
	public static Type<GalleryClickedHandler> TYPE = new Type<GalleryClickedHandler>();
	
	Gallery g;
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<GalleryClickedHandler> getAssociatedType() {
		return TYPE;
	}
	
	public GalleryClickedEvent(Gallery g){
		this.g = g;
	}
	
	@Override
	protected void dispatch(GalleryClickedHandler handler) {
		handler.onGalleryClicked(this);
	}
	
	public Gallery getGallery(){
		return g;
	}

}
